package com.supconit.kqfx.web.fxzf.search.daos.Impl;

import com.supconit.kqfx.web.fxzf.search.daos.VehicleDao;
import com.supconit.kqfx.web.fxzf.search.entities.Vehicle;
import hc.orm.AbstractBasicDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * Created by aouo on 2018/4/12.
 */
@Repository
public class VehicleDaoImpl extends AbstractBasicDaoImpl<Vehicle, String> implements VehicleDao {

    private  static final String NAMESPACE = Vehicle.class.getName();
    @Override
    protected String getNamespace() {
        return NAMESPACE;
    }


    @Override
    public int vehicleCount(String plate) {
        return selectOne("count",plate);
    }
}
